/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.reading.bank.entity;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.zx.subject.bank.entity.TsubjectBank;

/**
 * 阅读题题库Entity
 * @author zpp
 * @version 2020-03-27
 */
@Table(name="t_reading_bank", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="article", attrName="article", label="阅读文章"),
		@Column(name="post", attrName="post", label="岗位编码"),
		@Column(name="category", attrName="category", label="考试类别"),
		@Column(name="difficulty", attrName="difficulty", label="困难程度"),
		@Column(name="knowledge_point_type", attrName="knowledgePointType", label="知识类型"),
	}, orderBy="a.id DESC"
)
public class TreadingBank extends DataEntity<TreadingBank> {
	
	private static final long serialVersionUID = 1L;
	private String article;		// 阅读文章
	private String post;		// 岗位编码
	private Integer category;		// 考试类别
	private Integer difficulty;		// 困难程度
	private Integer knowledgePointType;		// 知识类型
	//题目列表
    private List<TsubjectBank> subjectList=new ArrayList<TsubjectBank>();
	
	public List<TsubjectBank> getSubjectList() {
		return subjectList;
	}

	public void setSubjectList(List<TsubjectBank> subjectList) {
		this.subjectList = subjectList;
	}
	public TreadingBank() {
		this(null);
	}

	public TreadingBank(String id){
		super(id);
	}
	
	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}
	
	@Length(min=0, max=50, message="岗位编码长度不能超过 50 个字符")
	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}
	
	public Integer getCategory() {
		return category;
	}

	public void setCategory(Integer category) {
		this.category = category;
	}
	
	public Integer getDifficulty() {
		return difficulty;
	}

	public void setDifficulty(Integer difficulty) {
		this.difficulty = difficulty;
	}
	
	public Integer getKnowledgePointType() {
		return knowledgePointType;
	}

	public void setKnowledgePointType(Integer knowledgePointType) {
		this.knowledgePointType = knowledgePointType;
	}
	
}